import Vue from 'vue'
import App from './App'

/**
 * start
 * store - vuex 全局变量
 */
import store from './store'
Vue.prototype.$store = store
// end

/**
 * start 自定义小程序头
 * 下面两个是必须的组件
 */
import hxNavbar from "@/components/hx-navbar/hx-navbar.vue"
Vue.component('hx-navbar',hxNavbar)
import headerWithHome from '@/components/header-with-home/header-with-home.vue'
Vue.component('headerWithHome',headerWithHome)
//end

/**
 * start 小程序网络请求封装
 */
import { http } from '@/utils/luch-request' // 全局挂载引入，配置相关在该index.js文件里修改
Vue.prototype.$http = http

import api from '@/api/api.js'
Vue.prototype.$api = api
// end


/**
 * 超出省略组件
 */
import sunUiOmitted from './components/sunui-omitted/sunui-omitted.vue'
Vue.component('sunui-omitted',sunUiOmitted);
// end

import MescrollBody from "@/common/mescroll-uni/mescroll-body.vue";
Vue.component("mescroll-body", MescrollBody);

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
